using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Versions
{
    /// <summary>
    /// <para>Remove Field Conflict Filter</para>
    /// <para>Removes a field conflict filter for a given field in a geodatabase table or feature class.</para>
    /// <para>移除地理数据库表或要素类中给定字段的字段冲突过滤器。</para>
    /// </summary>    
    [DisplayName("Remove Field Conflict Filter")]
    public class RemoveFieldConflictFilter : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveFieldConflictFilter()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_table">
        /// <para>Input Table</para>
        /// <para>Table or feature class containing the field or fields to be removed as conflict filters.</para>
        /// <para>包含要作为冲突过滤器移除的一个或多个字段的表或要素类。</para>
        /// </param>
        /// <param name="_fields">
        /// <para>Field Name</para>
        /// <para>Field or list of fields to be removed as conflict filters.</para>
        /// <para>要作为冲突筛选器删除的字段或字段列表。</para>
        /// </param>
        public RemoveFieldConflictFilter(object _table, List<object> _fields)
        {
            this._table = _table;
            this._fields = _fields;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Remove Field Conflict Filter";

        public override string CallName => "management.RemoveFieldConflictFilter";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_table, _fields, _out_table];

        /// <summary>
        /// <para>Input Table</para>
        /// <para>Table or feature class containing the field or fields to be removed as conflict filters.</para>
        /// <para>包含要作为冲突过滤器移除的一个或多个字段的表或要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _table { get; set; }


        /// <summary>
        /// <para>Field Name</para>
        /// <para>Field or list of fields to be removed as conflict filters.</para>
        /// <para>要作为冲突筛选器删除的字段或字段列表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Field Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _fields { get; set; }


        /// <summary>
        /// <para>Updated Input Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public RemoveFieldConflictFilter SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}